<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title>UCenter Home Control Panel</title>
<link id="mastercss" rel="stylesheet" href="admin/tpl/style.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
</head>
<body>
<div id="wrap">
<div id="header">
<h2><a href="index.php" title="<?=$_SCONFIG['sitename']?>"><img src="admin/tpl/image/logo.gif" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>

<div id="topmenu" class="gray">
欢迎您，<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['username']?></a> | 
<a href="space.php">我的空间</a> | 
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php $_TPL['menunames'] = array(
		'config' => '站点设置',
		'privacy' => '隐私设置',
		'usergroup' => '用户组',
		'credit' => '积分规则',
		'profilefield' => '用户栏目',
		'profield' => '选吧栏目',
		'censor' => '词语屏蔽',
		'ad' => '广告设置',
		'tagtpl' => '多应用设置',
		'network' => '随便看看设置',
		'cache' => '缓存更新',
		'space' => '用户管理',
		'feed' => '事件',
		'share' => '分享',
		'blog' => '日志',
		'album' => '相册',
		'pic' => '图片',
		'comment' => '评论',
		'thread' => '话题',
		'post' => '回帖',
		'doing' => '迷你博客',
		'tag' => '标签',
		'mtag' => '选吧',
		'block' => '数据调用',
		'template' => '模板编辑',
		'backup' => '数据备份',
		'stat' => '统计更新',
		'cron' => '计划任务'
	); ?>
<ul id="menu">
<li<?=$menuactive['index']?>><a href="admincp.php">管理平台</a></li>
<?php if(is_array($cmenus)) { foreach($cmenus as $value) { ?>
<li<?=$menuactive[$value]?>><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
</ul>
</div>
<div id="content">


<div class="mainarea">
<div class="maininner">
<?php if(empty($_GET['module'])) { ?>
<div class="bdrcontent">
<div class="title">
<h3>随便看看模块列表</h3>
<p>设置相应模块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th>模块</th>
<th width="80">操作</th>
</tr>
<tr>
<td>成员</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=space">编辑</a>
</td>
</tr>
<tr>
<td>迷您博客</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=doing">编辑</a>
</td>
</tr>
<tr>
<td>日志</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=blog">编辑</a>
</td>
</tr>
<tr>
<td>分享</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=share">编辑</a>
</td>
</tr>
<tr>
<td>相册</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=album">编辑</a>
</td>
</tr>
<tr>
<td>选吧</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=mtag">编辑</a>
</td>
</tr>
<tr>
<td>话题</td>
<td>
<a href="admincp.php?ac=network&op=edit&module=thread">编辑</a>
</td>
</tr>
</table>


</div>
<br />
<form method="post" action="admincp.php?ac=network&op=settinng">
<div class="bdrcontent">
<div class="title">
<h3>随便看看设置</h3>
<p>设置随便看看条件</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th style="width:12em;">随便看看允许分页</th>
<td><input type="radio" name="config[networkpage]" value="1"<?php if($configs['networkpage'] == '1') { ?> checked<?php } ?>>是
<input type="radio" name="config[networkpage]" value="0"<?php if($configs['networkpage'] == '0') { ?> checked<?php } ?>>否
<br>允许列表进行分页查看时，可能会对用户的隐私权限造成影响，并会增加服务器负担。
</td>
</tr>
<tr>
<th>数据缓存更新时间</th>
<td><input type="text" name="config[networkupdate]" value="<?=$configs['networkupdate']?>" size="10"> 单位:秒 , 默认为300秒,设为0将不使用缓存机制，并会增加服务器负担</td>
</tr>
</table>
<br />
</div>
<div class="footactions">
<input type="submit" name="settingsubmit" value="提交" class="submit">
</div>
</form>

<?php } else { ?>
<form method="post" action="admincp.php?ac=network">
<div class="bdrcontent">
<div class="title">
<h3>默认设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">使用默认设置</td>
<td>
<input type="radio" name="network[<?=$module?>][usedefault]" value="1" onclick="showsetting(false);" <?php if($network[$module]['usedefault'] == 1) { ?>checked<?php } ?>>是
<input type="radio" name="network[<?=$module?>][usedefault]" value="0" onclick="showsetting(true);" <?php if($network[$module]['usedefault'] == 0) { ?>checked<?php } ?>>否
</td>
</tr>
</table>
<div id="moreset" style="display:<?php if($network[$module]['usedefault']) { ?>none<?php } else { ?>block<?php } ?>">
<?php $datearr = array(
							'0' => '---不限制---',
							'86400' => '一天以来',
							'172800' => '两天以来',
							'604800' => '一周以来',
							'1209600' => '两周以来',
							'2592000' => '一个月以来',
							'7948800' => '三个月以来',
							'15897600' => '六个月以来',
							'31536000' => '一年以来'
						); ?>
<?php $scarr = array(
							'' => '----',
							'ASC' => '递增',
							'DESC' => '递减',
						); ?>
<?php if($_GET['module']=='space') { ?>
<div class="title">
<h3>成员过滤</h3>
<p>可以根据下面提供的条件进行设置成员区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">指定成员uid</td>
<td>
<input name="network[space][uid]" type="text" id="spaceuid" size="20" value="<?=$network['space']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
<tr>
<td>建立时间</td>
<td><?php echo getselectstr("network[space][dateline]", $datearr, $network['space']['dateline']) ?></td>
</tr>
<tr>
<td>更新时间</td>
<td><?php echo getselectstr("network[space][updatetime]", $datearr, $network['space']['updatetime']) ?></td>
</tr>
<tr>
<td>空间访问数范围</td>
<td>
<input name="network[space][viewnum][]" type="text" id="sviewnum0" size="10" value="<?=$network['space']['viewnum']['0']?>" /> ~ <input name="network[space][viewnum][]" type="text" id="sviewnum1" size="10" value="<?=$network['space']['viewnum']['1']?>" />
</td>
</tr>
<tr>
<td>空间好友数范围</td>
<td>
<input name="network[space][friendnum][]" type="text" id="friendnum0" size="10" value="<?=$network['space']['friendnum']['0']?>" /> ~ <input name="network[space][friendnum][]" type="text" id="friendnum1" size="10" value="<?=$network['space']['friendnum']['1']?>" />
</td>
</tr>
<tr>
<td>积分范围</td>
<td>
<input name="network[space][credit][]" type="text" id="credit0" size="10" value="<?=$network['space']['credit']['0']?>" /> ~ <input name="network[space][credit][]" type="text" id="credit1" size="10" value="<?=$network['space']['credit']['1']?>" />
</td>
</tr>
</table>
<div class="title">
<h3>成员排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $spacearr = array(
										'' => '------',
										'dateline' => '建立时间',
										'updatetime' => '更新时间',
										'viewnum' => '空间访问数',
										'friendnum' => '空间好友数',
										'credit' => '积分'
									); ?>
<?php echo getselectstr("network[space][order]", $spacearr, $network['space']['order']) ?> 
<?php echo getselectstr("network[space][sc]", $scarr, $network['space']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='doing') { ?>
<div class="title">
<h3>迷您博客过滤</h3>
<p>可以根据下面提供的条件进行设置迷您博客区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">发布时间</td>
<td><?php echo getselectstr("network[doing][dateline]", $datearr, $network['doing']['dateline']) ?></td>
</tr>
<tr>
<td>指定作者uid</td>
<td>
<input name="network[doing][uid]" type="text" id="doinguid" size="20" value="<?=$network['doing']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
</table>
<div class="title">
<h3>迷您博客排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $doingarr = array(
										'' => '------',
										'dateline' => '发布时间'
									); ?>
<?php echo getselectstr("network[doing][order]", $doingarr, $network['doing']['order']) ?> 
<?php echo getselectstr("network[doing][sc]", $scarr, $network['doing']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='blog') { ?>
<div class="title">
<h3>日志过滤</h3>
<p>可以根据下面提供的条件进行设置日志区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">发布时间</td>
<td><?php echo getselectstr("network[blog][dateline]", $datearr, $network['blog']['dateline']) ?></td>
</tr>
<tr>
<td>指定作者uid</td>
<td>
<input name="network[blog][uid]" type="text" id="bloguid" size="20" value="<?=$network['blog']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
<tr>
<td>查看数范围</td>
<td>
<input name="network[blog][viewnum][]" type="text" id="viewnum0" size="10" value="<?=$network['blog']['viewnum']['0']?>" /> ~ <input name="network[blog][viewnum][]" type="text" id="viewnum1" size="10" value="<?=$network['blog']['viewnum']['1']?>" />
</td>
</tr>
<tr>
<td>回复数范围</td>
<td>
<input name="network[blog][replynum][]" type="text" id="replynum0" size="10" value="<?=$network['blog']['replynum']['0']?>" /> ~ <input name="network[blog][replynum][]" type="text" id="replynum1" size="10" value="<?=$network['blog']['replynum']['1']?>" />
</td>
</tr>
</table>
<div class="title">
<h3>日志排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $blogarr = array(
										'' => '------',
										'dateline' => '发布时间',
										'viewnum' => '查看数',
										'replynum' => '回复数'
									); ?>
<?php echo getselectstr("network[blog][order]", $blogarr, $network['blog']['order']) ?> 
<?php echo getselectstr("network[blog][sc]", $scarr, $network['blog']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='share') { ?>
<div class="title">
<h3>分享过滤</h3>
<p>可以根据下面提供的条件进行设置分享区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">分享时间</td>
<td><?php echo getselectstr("network[share][dateline]", $datearr, $network['share']['dateline']) ?></td>
</tr>
<tr>
<td>指定作者uid</td>
<td>
<input name="network[share][uid]" type="text" id="shareuid" size="20" value="<?=$network['share']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
</table>
<div class="title">
<h3>分享排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $sharearr = array(
										'' => '------',
										'dateline' => '发布时间'
									); ?>
<?php echo getselectstr("network[share][order]", $sharearr, $network['share']['order']) ?> 
<?php echo getselectstr("network[share][sc]", $scarr, $network['share']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='album') { ?>
<div class="title">
<h3>相册过滤</h3>
<p>可以根据下面提供的条件进行设置相册区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">发布时间</td>
<td><?php echo getselectstr("network[album][dateline]", $datearr, $network['album']['dateline']) ?></td>
</tr>
<tr>
<td>更新时间</td>
<td><?php echo getselectstr("network[album][updatetime]", $datearr, $network['album']['updatetime']) ?></td>
</tr>
<tr>
<td>指定作者uid</td>
<td>
<input name="network[album][uid]" type="text" id="albumuid" size="20" value="<?=$network['album']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
<tr>
<td>图片数范围</td>
<td>
<input name="network[album][picnum][]" type="text" id="picnum0" size="10" value="<?=$network['album']['picnum']['0']?>" /> ~ <input name="network[album][picnum][]" type="text" id="picnum1" size="10" value="<?=$network['album']['picnum']['1']?>" />
</td>
</tr>
</table>
<div class="title">
<h3>相册排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $albumarr = array(
										'' => '------',
										'dateline' => '发布时间',
										'updatetime' => '更新时间',
										'picnum' => '图片数'
									); ?>
<?php echo getselectstr("network[album][order]", $albumarr, $network['album']['order']) ?> 
<?php echo getselectstr("network[album][sc]", $scarr, $network['album']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='mtag') { ?>
<div class="title">
<h3>选吧过滤</h3>
<p>可以根据下面提供的条件进行设置选吧区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">指定选吧tagid</td>
<td>
<input name="network[mtag][tagid]" type="text" id="mtag" size="20" value="<?=$network['mtag']['tagid']?>" /> 多个tagid用","分隔
</td>
</tr>
<tr>
<td>选吧人数范围</td>
<td>
<input name="network[mtag][membernum][]" type="text" id="membernum0" size="10" value="<?=$network['mtag']['membernum']['0']?>" /> ~ <input name="network[mtag][membernum][]" type="text" id="membernum1" size="10" value="<?=$network['mtag']['membernum']['1']?>" />
</td>
</tr>
<tr>
<td>选吧所属分类</td>
<td>
<select name="network[mtag][fieldid][]" size="10" multiple="multiple" id="select">
<?php if(is_array($list)) { foreach($list as $value) { ?>
<option value="<?=$value['fieldid']?>" <?php if($network['mtag']['fieldid'] && in_array($value['fieldid'], $network['mtag']['fieldid'])) { ?>selected<?php } ?>><?=$value['title']?></option>
<?php } } ?>
</select>
</td>
</tr>
</table>
<div class="title">
<h3>选吧排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $mtagarr = array(
										'' => '------',
										'membernum' => '选吧人数'
									); ?>
<?php echo getselectstr("network[mtag][order]", $mtagarr, $network['mtag']['order']) ?> 
<?php echo getselectstr("network[mtag][sc]", $scarr, $network['mtag']['sc']) ?>
</td>
</tr>
</table>
<?php } elseif($_GET['module']=='thread') { ?>
<div class="title">
<h3>话题过滤</h3>
<p>可以根据下面提供的条件进行设置日志区块的取值条件</p>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">发布时间</td>
<td><?php echo getselectstr("network[thread][dateline]", $datearr, $network['thread']['dateline']) ?></td>
</tr>
<tr>
<td>回复时间</td>
<td><?php echo getselectstr("network[thread][lastpost]", $datearr, $network['thread']['lastpost']) ?></td>
</tr>
<tr>
<td>指定作者uid</td>
<td>
<input name="network[thread][uid]" type="text" id="threaduid" size="20" value="<?=$network['thread']['uid']?>" /> 多个uid用","分隔
</td>
</tr>
<tr>
<td>查看数范围</td>
<td>
<input name="network[thread][viewnum][]" type="text" id="viewnum0" size="10" value="<?=$network['thread']['viewnum']['0']?>" /> ~ <input name="network[thread][viewnum][]" type="text" id="viewnum1" size="10" value="<?=$network['thread']['viewnum']['1']?>" />
</td>
</tr>
<tr>
<td>回复数范围</td>
<td>
<input name="network[thread][replynum][]" type="text" id="replynum0" size="10" value="<?=$network['thread']['replynum']['0']?>" /> ~ <input name="network[thread][replynum][]" type="text" id="replynum1" size="10" value="<?=$network['thread']['replynum']['1']?>" />
</td>
</tr>
</table>
<div class="title">
<h3>话题排序设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">列表排序</td>
<td>
<?php $threadarr = array(
										'' => '------',
										'dateline' => '发布时间',
										'lastpost' => '回复时间',
										'viewnum' => '查看数',
										'replynum' => '回复数'
									); ?>
<?php echo getselectstr("network[thread][order]", $threadarr, $network['thread']['order']) ?> 
<?php echo getselectstr("network[thread][sc]", $scarr, $network['thread']['sc']) ?>
</td>
</tr>
</table>
<?php } ?>
<div class="title">
<h3>数据设置</h3>
</div>
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td style="width:10em;">起始数据行数</td>
<td>
<input type="text" name="network[<?=$module?>][start]" value="<?=$network[$module]['start']?>" size="10"> 
</td>
</tr>
<tr>
<td>显示数据条数</td>
<td>
<input type="text" name="network[<?=$module?>][limit]" value="<?=$network[$module]['limit']?>" size="10">
</td>
</tr>
</table>
</div>
<br />
<input type="submit" name="thevaluesubmit" value="提交" class="submit">
</div>
</form>
<script type="text/javascript">
function showsetting(stat) {
if(stat) {
$('moreset').style.display = "block";
} else {
$('moreset').style.display = "none";
}
}
</script>
<?php } ?>
</div>
</div>
<div class="side">
<?php if($menus['0']) { ?>
<div class="block style1">
<h2>常规设置</h2>
<ul class="folder">
<?php if(is_array($acs['0'])) { foreach($acs['0'] as $value) { ?>
<?php if($menus['0'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>
<?php } ?>

<div class="block style1">
<h2>批量管理</h2>
<ul class="folder">
<?php if(is_array($acs['3'])) { foreach($acs['3'] as $value) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
<?php if(is_array($acs['1'])) { foreach($acs['1'] as $value) { ?>
<?php if($menus['1'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>

<?php if($menus['2']) { ?>
<div class="block style1">
<h2>高级应用</h2>
<ul class="folder">
<?php if(is_array($acs['2'])) { foreach($acs['2'] as $value) { ?>
<?php if($menus['2'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
<?php if($menus['0']['config']) { ?><li><a href="<?=UC_API?>" target="_blank">UCenter</a></li><?php } ?>
</ul>
</div>
<?php } ?>
</div>

</div>
<div id="footer">
<p>
Powered by <a  href="http://u.discuz.net" target="_blank" title="<?php echo X_RELEASE; ?>">UCenter Home</a> <?php echo X_VER; ?> 
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>, 
Copyright 2001-2008 <a  href="http://www.comsenz.com/" target="_blank">Comsenz Inc.</a>
</p>
<p><?php echo debuginfo(); ?></p>
</div>
</div>
</body>
</html>
<?php ob_out(); ?>
<?php subtplcheck('admin/tpl/network|admin/tpl/header|admin/tpl/side|admin/tpl/footer', '1226931354', 'admin/tpl/network'); ?>